package com.btioe.yugong.common.exe;

import com.iote.rock.able.ErrorCodeInterface;

public enum ErrorCodeEnum implements ErrorCodeInterface {
    PROFILE_IS_NULL("1000", "obtain profile fail", ""),
    ;
    private String code;

    private String desc;

    private String message;

    ErrorCodeEnum(String code, String desc, String message) {
        this.code = code;
        this.desc = desc;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }

    public String getMessage() {
        return message;
    }

    public String toString() {
        return code + ": " + desc + ": " + message;
    }
}
